package com.ruoyi.kjy.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.converters.localdate.LocalDateDateConverter;
import com.alibaba.excel.converters.localdatetime.LocalDateTimeDateConverter;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.mp.domain.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("intellectual_property")
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
@ColumnWidth(20)
public class IntellectualProperty extends CommonEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)

    @ExcelProperty(value = "序号")
    private Long id;




    @ExcelProperty(value = "名称")
    private String name;

    @ExcelProperty(value = "企业名称")
    private String enterpriseName;

    @ExcelProperty(value = "类型")
    private Integer type;


    @ExcelProperty(value = "证件序号")
    private String certificateNumber;

    @ExcelProperty(value = "证件")
    private String certificate;

    @ExcelProperty(value = "证件日期",converter = LocalDateDateConverter.class)
    private LocalDate certificateDate;

    @ExcelProperty(value = "用户")
    private Long userId;


    @ExcelProperty(value = "出版时间",converter = LocalDateTimeDateConverter.class)
    private LocalDateTime publishTime;


    private Integer status;

}
